package com.example.base.security.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.base.excetion.GlobalExcetion;
import com.example.base.security.domain.SysRoleEntity;
import com.example.base.security.domain.vo.SysRoleVo;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/11 14:46
 * @since JDK 1.8
 */
public interface SysRoleService extends IService<SysRoleEntity> {

    SysRoleEntity addOrUpdateSysRole(SysRoleVo vo) throws GlobalExcetion;

    SysRoleEntity getSysRoleEntityByRoleNo(String roleNo);

    IPage<SysRoleEntity> page(Integer pageNum, Integer pageSize, String keyword);
}
